add initial rewrite