Revert "replace index"

This reverts commit 43b1225b794ec2057109a9532ab81700c1b04dea.