update n-gram for 4grams