replace the outdated api with ARC