updated to work in Xcode 5.1

made ARC compatible