set up index