saving in sgd