fix folding strategy