macro rewrite started