oops, inserting the wrong part into keys. fix for iteritems.