One possible explanation of the origin of jealousy in evolutionary psychology is that the emotion evolved in order to maximize the success of our genes: it is a biologically based emotion selected to foster the certainty about the paternity of one's own offspring. A jealous behavior, in men, is directed into avoiding sexual betrayal and a consequent waste of resources and effort in taking care of someone else's offspring. There are, additionally, cultural or social explanations of the origin of jealousy. According to one, the narrative from which jealousy arises can be in great part made by the imagination. Imagination is strongly affected by a person's cultural milieu. The pattern of reasoning, the way one perceives situations, depends strongly on cultural context. It has elsewhere been suggested that jealousy is in fact a secondary emotion in reaction to one's needs not being met, be those needs for attachment, attention, reassurance or any other form of care that would be otherwise expected to arise from that primary romantic relationship.