set up the index