changed the total index length