updated folding