use proper method for  updating metadata