modify stream