improved unique_list