added program foldLine