add insert_list() and delete_list() functions