How long do caterpillar stay in their cocoon