modified the reverse_list api