add line number tracking