fixed linalg error and printing