reverting changes to stochastic gradient descent