re-adding memory.push and memory.unshift again