I have a hard time trying to debug other people's code; I have to get into their mindset in order to do that. "index" is just a regular name for a variable; I use it in loops or in repetitive actions and its value is usually incremented or decremented in a loop.