revise the main.cpp of animation
revise