added layering for arcs