use set instead of list in memorypool_update