the larvae feed on the caterpillar and emerge to become pupae