update streaming bug: should print the line in each iteration