fix num samples