remove to_dict() since it wasn't actually used anywhere