cleaning up for multiprocessing
cleaning up for multiprocessing