added sgd