tweaked to erase bad line breaks