ios6 compatibility, example changed