changed implementation of getNeighborhoodCluster