make rotations smooth