edit routing func