bigrams and trigrams working but slow