fix: relative and absolute thresholding