optimize for iOS 7