rotations not working correctly