insert the thresholding function output into degre_pres function directly