added variance calculation for stderrs