implemented router_save_linkedlist