if using deployment target of iOS 6 or earlier, but device is running iOS 7 or later use the new method