read the input file in