use input file name for result file name