fix arguments for readTrainingData