update the grid_routing.cc