ios example improved