createDictionary util