linear model, with a bit of regression