replace list_add_tail() and list_del with my own program