added state to history