add regularization to LS