fixed calculation of partial variances; fixes gh-70