rewrite var