Improving linalg methods