rollback input path to SCFG algorithm