we should set set outputformatclass before passing job as a parameter