update regularization.