updated TrainParser