update sample size