improves memory management