changes for reading input files