Yes indeed - I added the two additional functions after writing the rest of the code and forgot to change the indices here.