adding logic to draw nested arcs