modify method for extracting arcs, untested