removing intersections