adding lines to array