fixed linalg