update index to reflect change