stream code added