remove infrequent words logs