add stats: working
add adaptive threshold 1