moved the distance threshold to pf_alloc function along with the other hard coded params