remove infrequent words scaffold