modify the method name from format_input to input_format