update of NGrams