amended linalg