changes vmap to xmap