update metadata as helper