changing index incrementing