eliminated tic and toc for sweeping parameters