 When a female dies a juvenile (male) anemone fish moves in, and "the resident male then turns into a female and reproductive advantages of the large female–small male combination continue".In other fishes sex changes are reversible.For example, if some gobies are grouped by sex (male or female), some will switch sex.