implimented n-1 gram suggestion, still need to fix bugs