modfying index