updating neighbours only when number changes