The ability of chameleon to change its colour rapidly is an adaptation for