formatted the read_file