Caterpillars in the family Papilionidae have a special organ. This organ is called an osmeterium. It is a bad-smelling gland that is shaped like a snake's tongue. It is kept behind the inside of the head. When a predator tries to eat the caterpillar, the caterpillar will release the osmeterium. This scares the predators away.