add the option to do the unconstrained Method 2