update the index to be simpler