added method to set genders
fixed minor bug