improvements to duplicates