revert the 3D rotations