backward compatibility for iOS 6