Oedipus complex the Electra complex to describe a girl's daughter–mother competition for psychosexual possession of the father. In the phallic stage, a girl's Electra complex is her decisive psychodynamic experience in forming a discrete sexual identity (ego). Whereas a boy develops castration anxiety, a girl develops penis envy, for she perceives that she has been castrated previously (and missing the penis), and so forms resentment towards her own kind as inferior, while simultaneously striving to claim her father's penis through bearing a male child of her own. Furthermore, after the phallic stage, the girl's psychosexual development includes transferring her primary erogenous zone
Psychology of religion modified the Freudian theory and produced a more complex account of the functions of religion. In his book "Psychoanalysis and Religion" he responded to Freud's theories by explaining that part of the modification is viewing the Oedipus complex as based not so much on sexuality as on a "much more profound desire", namely, the childish desire to remain attached to protecting figures. The right religion, in Fromm's estimation, can, in principle, foster an individual's highest potentialities, but religion in practice tends to relapse into being neurotic. According to Fromm, humans need a stable frame of reference. Religion fills this need.