converted iteritems in enumerate