fixing read_file