modify stepsize and max_iter