update of animation