had to define the pool within the try