support for iOS versions less then 6
merge