extracting duplication