refactored gender selection into partial file