changed to real memory usage