bug fixed in calculating the threshold. changed the hark threshold.