added the writing of the linesall table