investigating memory usage