smoothing the transition