a jay's changes to n grams