max and min depth utils updated to use arcs-length and arc-aref