optimize sampling strategy