change rotateInDegree to rotateTo