update dictionary.