loading data from the training file