making it work on IOS8