forgot to account for 1-based indexing of line numbers