added regularization for regression