getVarFormula and whichCluster