added iOS 7 support