output_file is a local variable