changed printing of lines and stops