changed AddCircuit syntax