comment change: max_iteration does not have to be even