added regularization to linear reg