method of folding