change from hash to object for metadata