added check neighbor