changing index for hw6