small fix on thresholds and beep