Other genes lie dormant in the caterpillar and are turned on in the butterfly. Yet others are active in the caterpillar and are turned off and forgotten when it becomes a butterfly. But the whole set of genes is there, in both bodies, and is passed on to the next generation.