characterDictionary should be global