added special case for finding neighbors
some changes