dont remove elements from container while iterating