for IOS code