process not only nodes but ways as well