change index for hw4 p2