add carriage return to last line