returning correct stream value