smoothed out the transition