index modified for part 2