rewrote scenario and state