new way of accomodating new labels for sgd