working multiprocessing code