updates and adding duplicates