autorelease improvements for better memory management.