sgm in streams