replaced implicit iteration with explicit 

Hopefully should avoid ConcurrentModificationExceptions