clarified memory usage