on_iteration() call added