added ios8 func