improved function for gender report