preparing the file reader