made animation slightly smoother