gender check & square root