set gender properly