resample do nothing at all if threshold <=0