clean up index file