set up an index