rewrite visitors