update code to do stochastic gradient descent
fixed conflict