fixed ARC issue for previous commit of the deprecated method