update regularization