added function for updating specific message