kairomone to which the prey responds. For example, the midge larvae (Chaoborus) that feed on Daphnia cucullata (a water flea) release a kairomone that Daphnia can detect. When the midge larvae are present, Daphnia grow large helmets that protect them from being eaten. However, when the predator is absent, Daphnia have smaller heads and are therefore more agile swimmers. Resource Organisms with resource polyphenisms show alternative phenotypes that allow differential use of food or other resources. One example is the western spadefoot toad, which maximizes its reproductive capacity in temporary desert ponds. While the water is at a safe level, the tadpoles develop slowly on a diet of other opportunistic pond inhabitants. However, when the water level is low and desiccation is imminent, the tadpoles develop a morphology (wide mouth, strong jaw) that permits them to cannibalize. Cannibalistic tadpoles receive better nutrition and thus metamorphose more quickly, avoiding death as the pond dries up. Among invertebrates, the nematode Pristionchus pacificus has one morph that primarily feeds on bacteria and a second morph that produces large teeth, enabling it to feed on other nematodes, including competitors for bacterial food. In this species, cues of starvation and crowding by other nematodes, as sensed by pheromones, trigger a hormonal signal that ultimately activates a developmental switch gene that specifies formation of the predatory morph. Density-dependent Density-dependent polyphenism allows species to show a different phenotype based on the population density in which it was reared. In Lepidoptera, African armyworm larvae exhibit one of two appearances: the gregarious or solitary phase. Under crowded or "gregarious" conditions, the larvae have black bodies and yellow stripes along their bodies. However, under solitary conditions, they have green bodies with a brown stripe down their backs. The different phenotypes emerge during the third instar and remain until the last instar. Dauer diapause in nematodes Under conditions of stress such as crowding and high temperature, L2 larvae of some free living nematodes such as Caenorhabditis elegans can switch development to the so-called dauer larva state, instead of going the normal molts into a reproductive adult. These dauer larvae are a stress-resistant, non-feeding, long-lived stage, enabling the animals to survive harsh conditions. On return to favorable conditions, the animal resumes reproductive development from L3 stage onwards. Evolution A mechanism has been proposed for the evolutionary development of polyphenisms: A mutation results in a novel, heritable trait. The trait's frequency expands in