gender check added