change doc from hash to payload