this should be number of lines, not end position