removed unused format_str string in output()