it's silly to remove elements from a dictionary during iteration