changing void* to variant type