remove redundant duplicates