n-gram in main