clean up index