adding generation with trigrams