removing useless indexes