check for duplicates and create csv