added variance calculator