testing toAngle