reformatted dictionary, switched to iteritems to iterate, added additional message