added virt type mapper function