updated training script
merged update of training script