added switch gender function
remove commented