update index for homework2