update iterator returning array