added corrected multiprocessing bug