tidying up index