added pool.py for multiprocessing