restoring get_variances