added enum memoryType