appended lines to an array