pushed new run_iteration code