The census in Parashat Pinhas is in anticipation of the division of the land. Why does the Torah insert two unrelated stories - the story of Datan, Aviram, and the sons of Korah, and the story of the daughters of Zelophehad? Apparently these are stories describing situations in which a person might lose his inheritance in the land, following a severe sin, or in a case of no legal heirs. Zelophehad's daughters claim that their father, who had no sons, does not deserve to lose his inheritance as someone who sinned severely, like Korah.