Most polychaetes have separate sexes, rather than being hermaphroditic. The most primitive species have a pair of gonads in every segment, but most species exhibit some degree of specialisation. The gonads shed immature gametes directly into the body cavity, where they complete their development. Once mature, the gametes are shed into the surrounding water through ducts or openings that vary between species, or in some cases by the complete rupture of the body wall (and subsequent death of the adult). A few species copulate, but most fertilize their eggs externally.