merging code with MemoryBoard