now use the unstable state to determine outputs