fixed typo linersolver to linearsolver, might break things