cleaning get_memory_address