memory has some bugs