improves memory statistics and management