optimizations
changed memory back to used / total