cleaning up index.