smoothing out animations