new normalize function on streams