define easing functions only once