fixing regularization warning