change implementation of pool