still has problem with total memory