swaping to variant type