updated ios example