Shortened neighborsim logic