optimal values in place