changed state nodes to outputs
now states are both inputs and outputs
for Bret