added average number of lines