update remove duplicates