changes to pool.map