fixed circuit B calculations.