got the memory working