better setup of index