dynamic index setting