sgd corrected