remove return values from graph transformations