changes for ngram compliance