reading input files