use enumerator blocks to replace fast enumerator loops