change `metadata` to `data`