debuging the rotation