trying to add state output