simplifying dictionaries