remove overlaps.