need to take intersections into account!!!