weight matrix removed, root optim.