add setter for sample size