update and rename the training file