get ready to do lattice for scfg