properly define ngram()