restrict generations and variants to integers