identify neighbour type