added helper function by gender