added state output