fixed order of appending new lines to body