using apply_async in pool