IOS updated code