When the body is too chilly, the arrector pili muscles found hooked up to hair follicles rise up, resulting in the hair in these follicles to try and do a similar. These hairs then sort a heat-trapping layer over the epidermis. This process is formally called piloerection, derived within the Latin text 'pilus' ('hair') and 'erectio' ('mounting up')