remove stream code