slight perf
fix and also balance threshold