change to objective-c for iOS6