linear regression potential and some corrections.