changed template for Ngrams