HAMA-770: add regularization