added memory_helper.hpp