stream apply by model