The last moulting of the caterpillar changes it into a pupa/chrysalis. Here it discards most of the external body parts, like proleg, spikes etc. Most importantly it discards the head. Actually the pupa comes out by cracking the head part and its discarded with the eyes, mandibles etc.
Here i...