add THRESHOLD_WIDTH_RATIO