output dictionaries correctly