adapter for enumeration and iterator