setting up the index