notes for regularization