creating next iteration