works only for iOS 7 or later.