add thred
add thresh