more changes to ngram script
fix