closed scanner, added line breaks