removes duplicates, and now results in a real CSV file'