changed to open the file reader