fixing calibration issue - when abs values are negative