Revert "Revert "update index""

This reverts commit 93605359460eb071757623aae0a25a26e5f59295.