removing stream and pipe