Revert "changed to index"

This reverts commit a14ea619bf004e49d3ecd63e8e07f0a16b2b69e8.