updated numtrials