updates file read to close file more quickly