modify the routing_function's declaration in header files