depending on where you start counting you have to add 1 to the index max

probably it will be zero indexed