added exit state