memory management fixes without ARC