Revert "Revert "create index""

This reverts commit 9d3dd19b2313f29e022f25a6fc48b13ffa8665b4.