i could still have been out of bounds if there is only a single newline character(Linux) and not two(Windows).