allow for parallelization in example