updating saveMetadata