added support for ios8