improve "Pool" class