updates for ngrams app