find the bug in stream version