update fields and metadata