folding procedure