remove some duplicates