corrected model data assignement