added memory template