use items instead of iteritems