mem functionalities seem to be working as expected