build data for sgd