converted to ARC. made code easier on the eyes