working on path intersections