changes for foldUnfold merge from predictabilityParsing