finish regularization.