NEW: main_training_iteratively