adaptation for ios8