correction in file reader