use lemmatize to trace K_freq; refactoring