returning dictionaries works