minor changes on number of samples