subcircuits working
new parse algorithm