removed use of ram_allocation_memory for dynamic memory