changed to animate to make smoother