implement unique_trims