changes in determining next node