update changes and metadata