feat funx added n gram length