change gender to accept null