adaptation of ios8