nsample = 1; rep = 1; iter = 1