I'm not sure I fully understand this code, but since each iteration through the loop is deleting a slice of the `pars` list doesn't that invalidate the subsequent slices?