modified model1.py