format dictionaries