finished linear regression