updated createDictionary