Caterpillars eating leaves

Caterpillars eat leaves, but after metamorphosis, the butterflies have different mouthparts, but they derived from the same basic structures.