somewhat working linear regression