simplify to_dict