changing diff to multiprocessing