added linear regression