updating memory use