modify memory pool