added control subcircuit