changed for iOS8 new policy