adaptive resampling for tuning studies added