changing number of samples