add function copy and new file