testing rewrite for canonical domain