How do you know when a caterpillar is ready to make a cocoon