added functionality to support gender