add back compatibility with iOS7