trying to make the app compatible on ios 6 and 7.