add some memory functions