rearrange the extraction of the statistical error