update metadata file