updated to use API's pivoted gender data