new line problem solving