added memory storage