update index should update index, not just prepare to