Vmap rewrite