lin_alg adjustments