you must create output file only after input file existence check. some input files can be missed it's OK