index support for for loop