before change of animation