remove intersections