ensured that all input and output files have the same names