probably finalized core sgd stuff, in notebook