max_iter -> num_iter