working on resource pool