input file copy and rename