hw4 index changed