changed primitive type of sample size