add note about memory allocation on the heap