to read from the file