set threshold input param as num