made animation smoother