input file replacement