merging into a single input file