a minor change in random sgd