corrected error in sigma estimation