Update variants.cpp