modified linearmodels