added rotations and rotation debug