fixing "the input_format has already been defined in Class" error