reading in the input files