modify linear regression