add calc for memory.