now using regularization in SGD, using same gradient code for both optimization types