change for compatibility with iOS 7.0