added computation of standard error