in reply to error message in the end of the array looping?
that next is useless, as long as you don't last, the loop is going to continue until it reaches the last element of the array.