build up index