added assert in make_enumerate_object