rewrite excel use def_class