don't iterate over a dict and change its size at the same time.
don't iterate over a dict and change its size at the same time.