some updates to linear regression