remove extraneous outputs