change calibration to function
test using sha256 for whitening