remove overlapping patches