alternate version of getVariants