store current line index