use get_object_vars