adding sex, master_id