preparation for folding