cleaning up index