unconstrained result same as in Matlab, things seem to work nicely