set up basics of index