update functions: extract.swe, calc.swe