When the worm eats food fully, it will stop eating and become a pupa, in the first stage still seen as the shape of the worm.