added function copy-line