update a tuple