add 3 tasks for demo
add
fix error
add condition for select the good threshold