update for iOS6/7