while I was calculating the test and train error with different lambda values in the regularization equation. the train error kept decreasing with increasing lambda until a