add memoryalloc functions