renamed read_file argument fi to file