use for comprehension for finding neighbors