Firstly , the silk insulates the pupa from the air outside the cell .
Secondly , silk acts as a thermostatic regulator .
Firstly , the silk insulates the pupa from the air outside the cell , and secondly , it acts as a thermostatic regulator .