add stream code