update the rotations algorithms