change behavior for x'*Q*x