The transformation of the caterpillar