will figure out later on
Finially figured out the bug within the memory pool