added support in variance for multivariate distributions