further changes in training.py