contiguity check