updated example to pools