mostly done with the linear regression solver