updated linear regression