changed return type for setAngle