beginning of gender matching