imporved unique_list class