remove duplicates from lists and cloning