now can tranform the training data