fixed multiprocessing (~50% speedup with 2 processes)