test for overlaps