pool in thread