update a number of lines