honed in on matrix write as key thing to optimize