When sex labeling and rearing are confusing (eg, in cases of ambiguous genitals or genetic syndromes altering genital appearance [eg, androgen insensitivity syndromes]), children may become uncertain about their gender identity or role, although the additional contribution of environmental factors remains controversial.