improved adaptive smapling thresholds