cocoons usage