corrected iteritem to iteritems