swapped pp for multiprocessing