forgot to increment index