adding more streaming code