resize sample size to improve rapidity