updated for iOS 8.0 SDK