new train.m file