add header to the lines object