make sources compile with new variant type