changed state nodes to outputs