Revert "Revert "modify index""

This reverts commit 2cd004dfabe1c6b5e54e880c12d2222a64b8c432.