added check for ARC