updates dictionaries