update training data