drawing the circuit