update dictionaries