tweak memory usage