update sgd post