added adjacency checks