replace nsim() with nsims()