this scope error in start_animation function