update the metadata