callback of to_list method