rewrite scenario