changed code to deal with the case when male is missing but female is not, or vice versa. changed it to display missing if anything is missing