add pre do to train without test