remove dict_to_class