fixed bug -- now use conditional variances rather than variances to estimate the quality for the replicates