implemented -noDuplicates