using "for key,value in dict.items()" to iterate a dictionary