backwards compatibility for < iOS 5