fixed error on calculatin neighbour processes before moving/processing