improve easing maths