do not use pop since removing the item from the dictionary will screw up additional calls to iterate over results