update stream code