I got it, i added an "if $Line[0] = "" goto end1 endif" after the split command and that did the trick. i was getting the out of bounds error because it has reached the end of the row and there was nothing to display.