Some larvae attach small twigs , fecal pellets or pieces of vegetation to the outside of their cocoon in an attempt to disguise it from predators .

Some caterpillars attach small twigs or pieces of vegetation to the outside of their cocoon to hide it from predators .
