add weight for intersections