Changed method storeg neighbors