change number of lines to buffer and put it in a variable
edit comment