fixing multiprocessing