simplify the code with startAngle -= angle/2