a minor change in train_model.m