index is updated