process only 2 lines at once to make fast enough progress