made iOS 6 compatible