working without the line-by-line