changed distance on intersections