reduce memory usage.