update read_file to generate [good bad]