fix doc logic and circuit
doc logic
doc logic