set up the index.