fixed gender assignment. working now