generalize to find neighbours of the patch