working on more matrix stuff