moved the memory creation to FFD, but did not work yet
Updated the change