Updating references in tuples