modified the threshold