added a pause in the animation cycle