avoid concurrentmodificationexception