updating the IOS code