fixed the variance calculation error. now the variance is the variance of the label