added guest state to the output