data update in model.py