cleanup of word frequency