the usage of random threhold is not as good as expected