added gender judge