Oedipus complex the complex and that unsuccessful outcome of the complex might lead to neurosis, pedophilia, and homosexuality. Freud rejected the term "Electra complex", which was introduced by Carl Gustav Jung in 1913 in his work, ""Theory of Psychoanalysis"" in regard to the Oedipus complex manifested in young girls. Freud further proposed that the Oedipus complex, which originally refers to the sexual desire of a son for his mother, is a desire for the parent in both males and females, and that boys and girls experience the complex differently: boys in a form of castration anxiety, girls in a form of penis
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.