better ngram mangement