adding support for ios 8