How gender roles contribute to generativity