fixed variability criterion bug