prepare next iteration