restructured state output.