first cleaning up index