Memory improved (not the Memory class)
use NEW more carefully