first pass of code for parameter sweeps