remove duplicates from linked lits