implemented quad easing for values