add regularization to master