smoothing out transitions