rewrite all except where...