added reading input file