merge the training steps